package csc.fresher.spring.dao;

import java.util.Date;
import java.util.List;

import javax.sql.DataSource;

import csc.fresher.spring.domain.Employee;

public interface EmployeeDAO {

	public void setDataSource(DataSource dataSource);
	
	public void insertEmployee(String name, int age, String position,
			String phone, String address, Date dateJoin);
	
	public Employee getEmployee(int id);
	
	public List<Employee> listEmployee();
	
	public void delete(int id);
	
	public void updateName(int id, String name);
	
	public void updateAge(int id, int age);
	
	public void updatePosition(int id, String position);
	
	public void updatePhone(int id, String phone);
	
	public void updateAddress(int id, String address);
	
	public void updateDateJoin(int id, Date date);
	
}
